package com.maomao.maomaochong_i.personalPackage;

import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.Toast;

import com.maomao.maomaochong_i.MainActivity;
import com.maomao.maomaochong_i.R;
import com.maomao.maomaochong_i.application.MyApplication;
import com.maomao.maomaochong_i.dataBean.MySharePreference;

public class TryActivity extends AppCompatActivity implements View.OnClickListener {
    private Context tryContext;
    private ImageButton try_back, try_cancel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_try);

        MyApplication.getInstance().addActivity(this);
        tryContext = getApplicationContext();
        bindView();
    }

    private void bindView() {
        try_back = (ImageButton) findViewById(R.id.backButton);
        try_cancel = (ImageButton) findViewById(R.id.cancelButton);

        try_back.setOnClickListener(this);
        try_cancel.setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.backButton:
                finish();
                break;

            case R.id.cancelButton:
                finish();
                break;
        }
    }
}